<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * OrdersGoodsEvaluate
 *
 * @ORM\Table(name="orders_goods_evaluate", options={"comment":"订单商品评价表"})
 * @ORM\Entity()
 */
class  OrdersGoodsEvaluate
{
    public static $level_array = array(
        1 => '差评',
        2 => '中评',
        3 => '好评'
    );

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Orders
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Orders", inversedBy="id")
     * @ORM\JoinColumn(name="order_id", referencedColumnName="id")
     */
    private $order;

    /**
     * @var Goods
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Goods", inversedBy="id")
     * @ORM\JoinColumn(name="goods_id", referencedColumnName="id")
     */
    private $goods;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\User", inversedBy="id")
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
     */
    private $user;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\OrdersGoods", inversedBy="id")
     * @ORM\JoinColumn(name="orders_goods_id", referencedColumnName="id")
     */
    private $order_goods_id;

    /**
     * @var string
     *
     * @ORM\Column(name="goods_no", type="string", length=45, nullable=true,  options={"comment":"商品编号"})
     */
    private $goodsNo;

    /**
     * @var boolean
     *
     * @ORM\Column(name="status", type="boolean", options={"comment":"状态  0 删除  1 显示"})
     */
    private $status;

    /**
     * @var string
     *
     * @ORM\Column(name="content", type="string", length=60, nullable=true, options={"comment":"评价内容"})
     */
    private $content;

    /**
     * @var string
     *
     * @ORM\Column(name="images", type="simple_array", nullable=true, options={"comment":"评价图片最多5张"})
     */
    private $images;

    /**
     * @var integer
     *
     * @ORM\Column(name="level", type="smallint",  nullable=true, options={"comment":"评价等级 1 差评 2 中评 3 好评 "})
     */
    private $level;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;
    
    
}
